home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / emacssrc.zip / EMACSSRC.TAR / emacs-19.17 / src / getpagesize.h < prev    next >
C/C++ Source or Header  |  1993-07-26  |  787b  |  45 lines

  1. #ifdef BSD
  2. #ifndef BSD4_1
  3. #define HAVE_GETPAGESIZE
  4. #endif
  5. #endif
  6.  
  7. #ifndef HAVE_GETPAGESIZE
  8.  
  9. #ifdef VMS
  10. #define getpagesize() 512
  11. #endif
  12.  
  13. #ifdef HAVE_UNISTD_H
  14. #include <unistd.h>
  15. #endif
  16.  
  17. #ifdef _SC_PAGESIZE
  18. #define getpagesize() sysconf(_SC_PAGESIZE)
  19. #else
  20.  
  21. #ifndef    WINDOWSNT
  22. #include <sys/param.h>
  23. #endif    /* !WINDOWSNT */
  24.  
  25. #ifdef EXEC_PAGESIZE
  26. #define getpagesize() EXEC_PAGESIZE
  27. #else
  28. #ifdef NBPG
  29. #define getpagesize() NBPG * CLSIZE
  30. #ifndef CLSIZE
  31. #define CLSIZE 1
  32. #endif /* no CLSIZE */
  33. #else /* no NBPG */
  34. #ifdef    WINDOWSNT
  35. #define getpagesize()    4096
  36. #else /* !WINDOWSNT */
  37. #define getpagesize() NBPC
  38. #endif /* !WINDOWSNT */
  39. #endif /* no NBPG */
  40. #endif /* no EXEC_PAGESIZE */
  41. #endif /* no _SC_PAGESIZE */
  42.  
  43. #endif /* not HAVE_GETPAGESIZE */
  44.  
  45.